<html>
<head>
<style>
@page {
  size: 70px 70px;
  margin: 0;
}
body {
  margin: 0;
  width: 70px;
  height: 70px;
}
</style>
</head>
<body>
<div style="border: 1px solid black; width: 50px; height: 50px;">
  <div style="transform: rotate(45deg); width: 100%; height: 100%; background-color: red;"></div>
</div>
</body>
</html>
